<template>
	<view class="container">
 <uni-forms ref="form" :rules="{}">
            	<uni-forms-item label="用户名" name="">
            		<uni-easyinput  v-model="user.username"  placeholder="请输入用户名" />
            	</uni-forms-item>
            	<uni-forms-item label="密码" name="">
            		<uni-easyinput type="password"   v-model="user.password" placeholder="请输入密码" />
            	</uni-forms-item>
            	<uni-forms-item label="学院" name="">
            		<uni-combox  :candidates="user.college" placeholder="请选择学院" v-model="user.xues" ></uni-combox>
            	</uni-forms-item>
				<uni-forms-item label="专业" name="">
					<uni-combox  :candidates="user.major" placeholder="请选择专业" v-model="user.zs"></uni-combox>
				</uni-forms-item>
				<uni-forms-item label="电话" name="">
					<uni-easyinput type="password"   v-model="user.phone" placeholder="请输入电话号码" />
				</uni-forms-item>
				<uni-forms-item label="邮箱" name="">
					<uni-easyinput  v-model="user.email"  placeholder="请输入邮箱" />
				</uni-forms-item>
				<button type="primary">注册</button>
            </uni-forms>
	</view>
</template>

<script>
       export default {
       	data() {
       				return {
       					user:{
       						username:'xu',
							password:'123456',
							email:'216546556@qq.com',
							phone:'18745555',
							college:['1学院','2学院','3学院'],
							major:['1专业','2专业','3专业']

       					}}

       	methods: {
 
       }  }}
</script>
  
<style>
  .container {
  	padding: 20px;
  	font-size: 14px;
  	line-height: 24px;
  }
</style>
